package hzmg.akkacloud.server.remote.transport;

import com.hzmg.akkacloud.common.AkkaCloudSerializable;
import com.hzmg.akkacloud.common.enums.Protocol;
import com.hzmg.akkacloud.common.response.AskResponse;

/**
 * Transporter
 *
 * @author zbw
 * @since 2022/7/17
 */
public interface Transporter {

    Protocol getProtocol();

    String getAddress();

    void tell(String address, AkkaCloudSerializable object);

    AskResponse ask(String address, AkkaCloudSerializable object) throws Exception;
}
